package com.hdax.dm.mapstructs;

import com.hdax.dm.dto.IndexFloorDto;
import com.hdax.dm.dto.IndexNavDto;
import com.hdax.dm.item.Item;
import com.hdax.dm.item.ItemType;
import org.mapstruct.Mapper;

import java.util.List;
@Mapper(componentModel = "spring")
public abstract class IndexNavDtoMapper {
    public abstract IndexNavDto toNavTarget(ItemType type);

    public abstract List<IndexNavDto> toNavTarget(List<ItemType> type);

    //今日推荐和即将开售
    public abstract IndexNavDto.HotItems toHotItems(IndexNavDto.HotItems hotItems);
    public abstract List<IndexNavDto.HotItems> toHotItems(List<Item> hotItems);

}
